-- GENERATED SPELL FOR [Risen Wintergarde Defender] --


function spell0_27284(pUnit, Event) --@Unwavering Will,Self--
pUnit:FullCastSpellOnTarget(51307,pUnit)
pUnit:RegisterEvent('Sorts_27284', 30294, 1)
end

function Sorts_27284(pUnit, Event)
local choix_sorts_27284 = math.random(0, 0)
if choix_sorts_27284 == 0 then
pUnit:RegisterEvent('spell0_27284', 1, 1)
end
end

function mob27284_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27284', math.random(1500, 3000), 1)
end

function mob27284_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27284_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27284_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27284, 1, 'mob27284_Action')
RegisterUnitEvent(27284, 2, 'mob27284_Leave')
RegisterUnitEvent(27284, 3, 'mob27284_Kill')
RegisterUnitEvent(27284, 4, 'mob27284_Die')
